package com.duan.laugh.common.core.exception;

/**
 * 用户有多个租户异常
 *
 * @author duanjw
 */
public class MultipleTenantException extends BaseRuntimeException {

    private static final long serialVersionUID = 1L;

    /**
     * 检查异常返回的错误码
     */
    public static Integer MULTIPLE_TENANT_EXCEPTION_CODE = 3;
    /**
     * 异常消息
     */
    public static String MESSAGE = "用户有多个租户，请选择其中一个租户登录";

    public MultipleTenantException() {
        super(MESSAGE);
    }

    public MultipleTenantException(String message) {
        super(message);
    }

    /**
     * 错误码
     *
     * @return
     */
    @Override
    public Integer getCode() {
        return MULTIPLE_TENANT_EXCEPTION_CODE;
    }
}
